package oop;

public class EmployeeDemo {
    public static void main(String[] args) {
        //无参构造
        Employee e1 = new Employee();
        e1.setEid("001");
        e1.setName("张三");
        e1.setAge(23);
        e1.setSalary(10000);
        System.out.println(e1.getEid()+" -- "+e1.getName()+" -- "+e1.getAge()+" -- "+e1.getSalary());


        //全参构造创建对象
        Employee e2 = new Employee("002",
                "李四",
                22,
                11000);
        System.out.println(e2.getEid()+" -- "+e2.getName()+" -- "+e2.getAge()+" -- "+e2.getSalary());
    }
}